﻿using DelonixRegiaHMSys.Core.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DelonixRegiaHMSys.Core.Models;
using System.Collections;

namespace DelonixRegiaHMSys.Core.Services
{
    public class ciService
    {
        private readonly ICheckInQuery _checkInQuery;
        public ciService(ICheckInQuery checkInQuery)
        {
            _checkInQuery = checkInQuery;
        }
        public IEnumerable<CheckIn> GetAllCheckIn()
        {
            return _checkInQuery.GetAllCheckIn();
        }
        public void AddCheckIn(string checkinID, string guestID, string reservationID, string userID, int numOfAdults, int numOfChildren, DateTime checkinDateTime, DateTime desiredCheckOutDateTime, string roomType, string bedType, string smokingOrNot, string addRemarks, string lateCheckOutReq, int roomNum, string paymentMode)
        {
            _checkInQuery.AddCheckIn(checkinID, guestID, reservationID, userID, numOfAdults, numOfChildren, checkinDateTime, desiredCheckOutDateTime, roomType, bedType, smokingOrNot, addRemarks, lateCheckOutReq, roomNum, paymentMode);
    
        }
        public void UpdateCheckIn(int numOfAdults, int numOfChildren, DateTime checkinDateTime, DateTime desiredCheckOutDateTime, string roomType, string bedType, string smokingOrNot, string addRemarks, string lateCheckOutReq, int roomNum, string paymentMode)
        {
            _checkInQuery.UpdateCheckIn(numOfAdults, numOfChildren, checkinDateTime, desiredCheckOutDateTime, roomType, bedType, smokingOrNot, addRemarks, lateCheckOutReq, roomNum, paymentMode);
        }
        public void DeleteCheckIn(string checkinID)
        {
            _checkInQuery.DeleteCheckIn(checkinID);
        }
    }
}
